﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="model_edit.aspx.cs" Inherits="EDP.Application.Web.BizModel.model_edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="panel" runat="server" />
        <f:HiddenField ID="hide_ClassifyId" runat="server" />
        <f:Panel ID="panel" runat="server" ShowBorder="false" Margin="10 10 0 10" Layout="HBox">
            <Items>
                <f:SimpleForm ID="from" runat="server" Title="基本信息" MinWidth="300" BoxFlex="1" BodyPadding="10" Margin="0" LabelWidth="85" Layout="Column">
                    <Items>
                        <f:TextBox ID="TextBox1" runat="server" Label="业务模型名称" BindName="Name" Margin="0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:TextBox ID="TextBox3" runat="server" Label="程序集" BindName="AssemblyName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="TextBox4" runat="server" Label="类名称" BindName="ClassName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="TextBox2" runat="server" Label="类全名称" BindName="ClassFullName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:DropDownList ID="ddl_classifyList" runat="server" Label="所属分类" BindName="ClassifyId" EnableSimulateTree="true" Margin="10 0 0 0" ColumnWidth="100%" ShowRedStar="true" />
                        <f:TextBox ID="tb_createUser" runat="server" Label="创建人" BindName="CreateUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_craeteTime" runat="server" Label="创建时间" BindName="CreateTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyUser" runat="server" Label="修改人" BindName="ModifyUserName" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextBox ID="tb_modifyTime" runat="server" Label="修改时间" BindName="ModifyTimeDisplay" Margin="10 0 0 0" ColumnWidth="100%" Readonly="true" />
                        <f:TextArea ID="tb_remark" runat="server" Label="备注" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="200" />
                    </Items>
                </f:SimpleForm>

                <f:Grid ID="grid_List_property" runat="server" Title="业务模型属性列表" ShowHeader="true" Margin="0 0 0 5" MinWidth="550" BoxFlex="1" DataKeyNames="Name,Remarks" AllowSorting="false" AllowPaging="false" AllowCellEditing="true" OnPreRowDataBound="grid_List_property_PreRowDataBound">
                    <Toolbars>
                        <f:Toolbar runat="server" Position="Top" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_property_load" runat="server" Text="刷新属性" Icon="ArrowRefresh" Margin="0 10 0 0" OnClick="btn_property_load_Click" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="ClassName" Width="200" HeaderText="类名称" />
                        <f:BoundField DataField="Name" Width="150" HeaderText="属性名" />
                        <f:RenderField DataField="Remarks" ExpandUnusedSpace="true" FieldType="String" HeaderText="名称">
                            <Editor>
                                <f:TextBox ID="tb_classDesc_pop" Required="true" runat="server" />
                            </Editor>
                        </f:RenderField>
                        <f:LinkButtonField ColumnID="lb_model_property_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除" ToolTip="删除" Icon="Delete" TextAlign="center" EnablePostBack="false" />
                    </Columns>
                </f:Grid>

                <f:Grid ID="grid_List_view" runat="server" Title="业务模型视图列表" ShowHeader="true" Margin="0 0 0 5" MinWidth="350" BoxFlex="1" DataKeyNames="ID" AllowSorting="false" AllowPaging="false" EnableCheckBoxSelect="false"
                    OnPreRowDataBound="grid_List_view_PreRowDataBound" OnRowCommand="grid_List_view_RowCommand">
                    <Toolbars>
                        <f:Toolbar runat="server" Position="Top" ToolbarAlign="Right">
                            <Items>
                                <f:Button ID="btn_add" runat="server" Text="新增视图" Icon="Add" Margin="0 10 0 0" EnablePermission="true" />
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Name" ExpandUnusedSpace="true" HeaderText="视图名称" />
                        <f:LinkButtonField ColumnID="lb_view_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态" CommandTitle="设置业务模型视图启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_view_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑业务模型视图" Icon="TableEdit" ToolTip="编辑" TextAlign="center" />
                        <f:LinkButtonField ColumnID="lb_view_delete" Width="30" CommandName="delete" EnableLock="true" ToolTip="删除业务模型视图" CommandTitle="删除业务模型视图" Icon="Delete"
                            ConfirmTitle="删除业务模型视图" ConfirmText="是否删除该业务模型视图？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                    </Columns>
                </f:Grid>
            </Items>
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0" OnClick="btn_save_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>

        <f:Window ID="win_view" runat="server" OnClose="win_view_Close" />
    </form>
</body>
</html>
